package cn.itsource.shop.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.itsource.basic.base.domain.BaseDomain;
import cn.itsource.org.domain.Employee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author h
 * @since 2023-07-05
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;

    @NotEmpty
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @NotEmpty
    @Excel(name = "联系电话" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String tel;

    @Excel(name = "入驻时间" ,orderNum = "1", width = 30, isImportField = "true_st", format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime;
    /**
     * 1通过，0驳回，-1拒绝
     */
    private Integer state;
    @NotEmpty
    @Excel(name = "店铺地址" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String address;
    private String logo;
    private Long adminId;
    @NotNull
    private Employee admin;
}
